package Store;

import DataView.AttributeInfo;

public class Attribute extends CDElement 
{
	private AttributeInfo info;
	
	public void mkElement(AttributeInfo myInfo) 
	{
		super.mkElement(myInfo);
		info=myInfo;
	}
	
	public AttributeInfo getInfo()
	{
		return info;
	}

	public String getDescription() 
	{
		return info.getName()+" : "+info.getType().getName();
	}

	public void setOfClass(Class c) 
	{
		info.setOfClass(c);
	}
	
	public Attribute clone()
	{
		Attribute clone = new Attribute();
		clone.mkElement(info.clone());
		return clone;
	}
}